<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="outer">
      <h2>车标展示</h2>
      <ul>
        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博基尼幻影幻影" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini lambojini"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>

        <li>
          <a href="#" title="lambojini 兰博基尼幻影"
            ><strong>lambojini</strong>兰博基尼幻影</a
          >
          <img src="1.jpg" alt="兰博" />
        </li>
      </ul>
    </div>
  </body>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      font: 12px/1.5 Tahoma;
    }
    ul {
      list-style-type: none;
    }
    #outer {
      width: 560px;
      margin: 0 auto;
      border: 1px solid black;
      padding: 0 0 10px 10px;
    }
    #outer h2 {
      line-height: 30px;
      text-align: center;
      margin-top: 10px;
    }
    #outer ul:after {
      content: ".";
      display: block;
      clear: left;
      visibility: hidden;
      height: 0;
    }
    #outer ul {
      zoom: 1;
    }
    #outer ul li {
      position: relative;
      float: left;
      border: 1px solid black;
      margin: 10px 10px 0 0;
    }
    #outer ul li img {
      position: absolute;
      border: 2px solid black;
      cursor: crosshair;
      top: -14px;
      left: -14px;
      display: none;
    }
    #outer ul li a {
      display: block;
      color: black;
      width: 80px;
      height: 80px;
      padding: 10px;
      background: #f0f0f0;
      text-decoration: none;
    }
    #outer ul li a strong {
      display: block;
    }
    .zindex {
      z-index: 1;
    }
  </style>
  <script>
    window.onload = function () {
      var oLi = document.getElementsByTagName("li");
      var oImg = document.getElementsByTagName("img");
      for (var i = 0; i < oLi.length; i++) {
        oLi[i].index = oImg[i].index = i;
        oLi[i].onmouseover = function () {
          oLi[this.index].className = "zindex";
          oImg[this.index].style.display = "block";
        };
        oLi[i].onmouseout = function () {
          oLi[this.index].className = "";
          oImg[this.index].style.display = "";
        };
      }
    };
  </script>
</html>
